package com.thz.houserental.domain.reservation;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ReservationMapper extends BaseMapper<Reservation> {
    Page<ReservationVo> queryPage(@Param("reservationPage") Page<ReservationVo> reservationPage,
                                  @Param(Constants.WRAPPER) QueryWrapper<Reservation> reservationQueryWrapper);

    Page<ReservationVo> getAllReservationPage(@Param("reservationPage") Page<ReservationVo> reservationVoPage, @Param("reservationVo") ReservationVo reservationVo);
}